/*
This file contains the main function used to test the DDMCMC algorithm.
You can create your own main file calling the DDMCMC class to run segmentation.
*/

#include <fstream>
#include <iostream>
#include "ddmcmc.h"

using namespace std;
using namespace cv;

long long tTotal = 0;
long long tFunction = 0;

int main(int argc, char** argv) {

	//Mat img = imread("F:\\DDMCMC\\image\\seg1.bmp");
	//Mat img = imread("F:\\workspace2\\DDMCMC\\images\\zibra.jpg");
	Mat img = imread("D:/Works/Research/DDMCMC/svn/image/seg1.bmp");
	if (!img.data){
		exit(1);
	}

	tTotal = GetTickCount();
	tStart = tTotal;
	DDMCMC ddmcmcSegmentation;
	ddmcmcSegmentation.DDMCMCSegmentation(img, 0, 6000, 12.0, true);
	destroyAllWindows();
	imshow("Result", ddmcmcSegmentation.getVisualized());
	imshow("Synthesized result", ddmcmcSegmentation.getSynthesized());
	imshow("Boundaries", ddmcmcSegmentation.getBoundaries());
	waitKey(1);

	system("pause");
	return 0;
}
